package com.example.springbootdemo;

import org.springframework.stereotype.Component;

/**
 * 电锯实现工具接口, 表示电锯是工具的一种
 */
// Spring 自动分配的Bean ID: saw
@Component
public class Saw implements Tool {
    private String name = "电锯";

    @Override
    public String toString() {
        return "Saw{" +
                "name='" + name + '\'' +
                '}';
    }
}
